package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.WwGroupTagsRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WwGroupTagsRelationMapper {
    int deleteById(@Param("id") Long id);

    int insert(WwGroupTagsRelation record);

    int insertSelective(WwGroupTagsRelation record);

    WwGroupTagsRelation selectById(@Param("id") Long id);

    WwGroupTagsRelation selectByTagIdAndDeviceIdAndGroupWxid(@Param("tagId") Long tagId, @Param("deviceId") String deviceId, @Param("groupWxid") String groupWxid);

    List<WwGroupTagsRelation> selectByDeviceIdAndGroupWxid(@Param("merId") Long merId, @Param("deviceId") String deviceId, @Param("groupWxid") String groupWxid);

    int updateByIdSelective(WwGroupTagsRelation record);

    int updateById(WwGroupTagsRelation record);
}